<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{{define "model"}}
{{template "content"}}
{{end}}

<!--这是两块模板,model包含了下面的content-->

{{define "content"}}
<a href="https://www.baidu.com">百度</a>
{{end}}

</body>
</html>